<template>
	<view class="avatar-content">
		<tn-avatar size="lg" text="TN"></tn-avatar>
		<view class="nick-name">
			<view>
				<text class="nick">{{name}}</text>
				<tn-tag v-if="tags" backgroundColor="#9DD757" fontColor="#fff" :fontSize="20" height="40rpx" shape="circle">{{tags}}</tn-tag>
			</view>
			<view class="time">{{time}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			name:{
				type: String,
				default:''
			},
			tags:{
				type:String,
				default:''
			},
			time:{
				type:String,
				default:''
			}
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="less" scoped>
	.avatar-content{
		display: flex;
		align-items: center;
		
		.nick-name{
			margin-left: 12rpx;
			
			.nick{
				color: #000;
				font-size: 30rpx;
				line-height: 52rpx;
				vertical-align: middle;
				margin-right: 6rpx;
			}
			.time{
				line-height: 52rpx;
				font-size: 20rpx;
				color:#666666;
			}
		}
	}
</style>